﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MicroCenter.Models
{

    public class RegistryModel
    {
        public string ServiceName { get; set; }

        public string Information { get; set; }

        public string ProxyUrl { get; set; }

        public string RemoteIP { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is RegistryModel registry)
            {
                return ServiceName.Equals(registry.ServiceName) && ProxyUrl.Equals(registry.ProxyUrl);
            }
            return false;
        }

        public override int GetHashCode()
        {
            return ServiceName.GetHashCode();
        }

    }
}
